//
//  HXRelatedFoodModel.m
//  ZCooking
//
//  Created by 韩旭 on 16/9/16.
//  Copyright © 2016年 HX_. All rights reserved.
//

#import "HXRelatedFoodModel.h"
#import "HXTagsModel.h"

@implementation HXRelatedFoodModel
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"description"]) {
        self.Description = value;
    }
}

+ (NSArray *)getRelateModelWithArray:(NSArray *)array {
    NSMutableArray *arrAll = [NSMutableArray array];
    for (NSDictionary *dic in array) {
        [arrAll addObject:[HXRelatedFoodModel ModelWithDic:dic]];
    }
    return arrAll;
}
- (instancetype)initWithDic:(NSDictionary *)dic {
    self = [super initWithDic:dic];
    if (self) {
        self.tags_info = [[HXTagsModel getTagsModelWithArray:dic[@"tags_info"]] mutableCopy];
    }
    return self;
}
@end
